﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5._22
{
    abstract class NPC
    {
        public string name;
        public string typeNpc;

        public string Name { get => name; set => name = value; }
        public string TypeNpc { get => typeNpc; set => typeNpc = value; }

        public NPC(string name, string typeNpc)
        {
            this.name = name;
            this.typeNpc = typeNpc;
        }

        public abstract void Speak();
    }
}
